package insight.google.game.era.bo;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import org.directwebremoting.annotations.DataTransferObject;
import org.directwebremoting.annotations.RemoteProperty;
import org.directwebremoting.proxy.ScriptProxy;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
@DataTransferObject
public class GameUserTest {
	
	@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
	@PrimaryKey
	protected Key id;
	
	@RemoteProperty
	@Persistent
	protected String name;
	
	@RemoteProperty
	@Persistent
	protected String email;
	
	@NotPersistent
	protected ScriptProxy scriptProxy;
	
	@Persistent
	private GameRoom currentRoom;

	public Key getId() {
		return id;
	}

	public void setId(Key id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public ScriptProxy getScriptProxy() {
		return scriptProxy;
	}

	public void setScriptProxy(ScriptProxy scriptProxy) {
		this.scriptProxy = scriptProxy;
	}

	public GameRoom getCurrentRoom() {
		return currentRoom;
	}

	public void setCurrentRoom(GameRoom currentRoom) {
		this.currentRoom = currentRoom;
	}
	
	
	
	
}
